<?php


use Illuminate\Support\Facades\Route;
use App\Http\Controllers\api\MenuController;

Route::group(['prefix' => 'ww'], function () {
    /**
     * @var array
     * 医生表
     * ww
     */
    //医生删除
    Route::get('delData', [\App\Http\Controllers\Api\DoctorController::class, 'delData']);
    //医生添加
    Route::post('addDoctor', [\App\Http\Controllers\Api\DoctorController::class, 'addDoctor']);
    //医生修改
    Route::any('updateDoctor', [\App\Http\Controllers\Api\DoctorController::class, 'updateDoctor']);
    //医生列表
    Route::any('listDoctor', [\App\Http\Controllers\Api\DoctorController::class, 'listDoctor']);
    //医生详情
    Route::any('detailsDoctor', [\App\Http\Controllers\Api\DoctorController::class, 'detailsDoctor']);


    /**
     * @Route("登录视图")
     * ww
     */
    Route::view('login','login');

    /**
     * @var array
     * 药品表
     * ww
     */
    //药品删除
    Route::get('delDrugs', [\App\Http\Controllers\Api\DoctorController::class, 'delDrugs']);
    //药品添加
    Route::any('addDrugs', [\App\Http\Controllers\Api\DrugsController::class, 'addDrugs']);
    //药品修改
    Route::any('updateDrugs', [\App\Http\Controllers\Api\DrugsController::class, 'updateDrugs']);
    //药品列表
    Route::any('listDrugs', [\App\Http\Controllers\Api\DrugsController::class, 'listDrugs']);


    /**
     * 秒杀药品
     * @Route("")
     * ww
     */
    //秒杀列表
    Route::any('KilList',[\App\Http\Controllers\Api\KillDrugsController::class,'KilList']);
    //添加秒杀药品入库
    Route::any('KilList',[\App\Http\Controllers\Api\KillDrugsController::class,'KilList']);

});
